package org.kongcloud.core.model.vo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;

@Data
@Builder
@AllArgsConstructor
public class SendMessageVO {
    @NotNull(message = "noticeType不能为空")
    @Range(min = 1, max = 4, message = "不大于4,不小于1的数字")
    private String noticeType;

    private String title;

    @NotNull(message = "content不能为空")
    @Length(min=1,message = "content长度错误")
    private String content;

    @NotNull(message = "sendTo不能为空")
    private String sendTo;

    @NotNull(message = "caller不能为空")
    @Length(min=1,message = "caller长度错误")
    private String caller;
}
